<?
global $user;

#echo "<pre>";print_r($params);die;

if ($params["value"]=="") return;

$e = $this->db->query1("select * from {$this->table} where {$this->key} = ".$this->db->sqlint($this->id));

$value = $e["notes"].
	str_repeat("=",60)."\n".
	date("Y-m-d H:i:s")." | ".$user["name"]." | {$params["record"]["status"]}\n".
	str_repeat("=",60)."\n".
	$params["value"]."\n\n";

#echo "<pre>$value</pre>";die;
	
$this->db->autoquery("update",$this->table,array(
	$this->key=>$this->id,
	$params["name"]=>$value,
	));
	
?>